
% A7_import_matlab
%==============================================================================

% Description: This code imports the data into Matlab, which is used on the
% supply side

clear
clc
KK = 4092;

for k = 1:KK
    
k
filename_X_MPEC = sprintf('company_files/company_%d.csv', k);
readtable(filename_X_MPEC);
company_summary{k} = ans;

end

clearvars -except company_summary
save('companies_k.mat');


% Manual Adjustments
%==========================================================================

load('companies_k.mat');
companies_k = company_summary{2629};
companies_k.companies_k = ones(size(companies_k,1), 1)
companies_k.companies_avg = ones(size(companies_k,1), 1)
company_summary{2629} = companies_k;
clearvars -except company_summary
save('companies_k.mat');



